import request from '@/utils/request'
import exportFile from '@/utils/exportFile'
 
const API= {
  // 接口1
  queryBlogList(data) {
    return request('/api/blog/queryBlogList.do', data, 'post')
  },
  addBlog(data) {
    return request('/api/blog/addBlog.do', data, 'post')
  },
  // 接口2
  addBlogComment(data) {
    return request('/api/blog/addBlogComment.do', data, 'post')
  },
  addReply(data) {
    return request('/api/blog/addReply.do', data, 'post')
  },


  selectByContentPage(data) {
    return request('/api/blog/selectByContentPage.do', data, 'post')
  },

  insertOrUpdateFcapNoContent(data){
    return request('/api/blog/insertOrUpdateFcapNoContent.do', data, 'post')
  },
  deleteFcapNoContent(data){
    return request('/api/blog/deleteFcapNoContent.do', data, 'post')
  },
  downloadTemplate(){
    return exportFile('/api/blog/download')
  },
  selectByMultiContentPage(data){
    return request('/api/blog/selectByMultiContentPage.do', data, 'post')
  },
  selectByMultiContentHanziPage(data){
    return request('/api/blog/selectByMultiContentHanziPage.do', data, 'post')
  },
  getRepeatListPage(data){
    return request('api/qibuzhong/getRepeatListPage.do', data, 'post')
  },
  getTicketListPage(data){
    return request('api/qibuzhong/getTicketListPage.do', data, 'post')
  },
  syncNewData(){
    return request('api/qibuzhong/syncNewData.do', {}, 'post')
  },
  insertOrUpdateData(data){
    return request('api/qibuzhong/insertOrUpdateData.do', data, 'post')
  },
  deleteData(data){
    return request('api/qibuzhong/deleteData.do', data, 'post')
  },
  jiSuanRepeat(data){
    return request('api/qibuzhong/jiSuanRepeat.do', data, 'post')
  },
  jiSuanRepeatOnlyOne(data){
    return request('api/qibuzhong/jiSuanRepeat.do', data, 'post')
  },
  getBuyTicketList(data){
    return request('api/qibuzhong/getBuyTicketList.do', data, 'post')
  }
}
 
export default API
